package com.example.shirotest.validator;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Positive;

@Data
public class Person {
    @NotEmpty
    private String name;

    @Positive
    @Max(value = 100)
    private int age;
}
